-- GENERATED SPELL FOR [Withered Ancient] --


function spell0_3919(pUnit, Event) --@Curse of Thorns,n/a--
pUnit:FullCastSpellOnTarget(6909,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3919', 2000, 1)
end

function Sorts_3919(pUnit, Event)
local choix_sorts_3919 = math.random(0, 0)
if choix_sorts_3919 == 0 then
pUnit:RegisterEvent('spell0_3919', 1, 1)
end
end

function mob3919_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3919', math.random(1500, 3000), 1)
end

function mob3919_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3919_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3919_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3919, 1, 'mob3919_Action')
RegisterUnitEvent(3919, 2, 'mob3919_Leave')
RegisterUnitEvent(3919, 3, 'mob3919_Kill')
RegisterUnitEvent(3919, 4, 'mob3919_Die')
